package com.dhcc.DRGsHosp.core.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

import org.openkoala.koala.commons.domain.KoalaLegacyEntity;

/**
 * 
 * @title		:KeyDisGroup.java
 * @description	: 重点病组实体类
 * @author		:mazhaoyan
 * @date		:2016年12月17日
 * @version     :1.0
 * @copyright   :DHCC 2013-2014
 */
@Entity
@Table(name="T_KEYDISGROUP", schema = "DRGs")
public class KeyDisGroup extends KoalaLegacyEntity {
	private static final long serialVersionUID = -7426007125529978144L;

	//DRG代码
	@Id
	@Column(name = "DRG_CODE", nullable = false)
	private String drgCode;
	
	//MDC代码
	@Column(name = "MDC_CODE", nullable = false)
	private String mdcCode;
	
	//科室代码
//	@Column(name = "DEP_CODE")
	@Transient
	private String depCode;
	
	//科室代码
	@Column(name = "CONF_CODE")
	private String confCode;
	
	//院区代码
	@Transient
	private String hospCode;
	
	//病组类型
	@Column(name = "GROUP_TYPE", nullable = false)
	private String groupType;
	@Transient
	private String role;//角色
	@Transient
	private String user;//角色
	@Transient
	private String[] years;//数据年份
	@Transient
	private int caseCntPer;//病例数占比
	@Transient
	private int weightPer;//权重占比
	@Transient
	private int mdcWeightPer;//mdc权重占比


	public KeyDisGroup() {
		super();
	}


	/**  
	 * Creates a new instance of KeyDisGroup.  
	 *  
	 *  @param drgCode
	 *  @param mdcCode
	 *  @param depCode
	 *  @param confCode
	 *  @param groupType
	 *  @param role
	 *  @param user
	 *  @param years
	 *  @param caseCntPer
	 *  @param weightPer
	 *  @param mdcWeightPer  
	 */  
	
	public KeyDisGroup(String drgCode, String mdcCode, String depCode, String confCode, String groupType, String role,
			String user, String[] years, int caseCntPer, int weightPer, int mdcWeightPer,String hospCode) {
		super();
		this.drgCode = drgCode;
		this.mdcCode = mdcCode;
		this.depCode = depCode;
		this.confCode = confCode;
		this.groupType = groupType;
		this.role = role;
		this.user = user;
		this.years = years;
		this.caseCntPer = caseCntPer;
		this.weightPer = weightPer;
		this.mdcWeightPer = mdcWeightPer;
		this.hospCode = hospCode ;
	}


	/**  
	 * role.  
	 *  
	 * return  the role   
	 */
	public String getRole() {
		return role;
	}

	/**  
	 * role.  
	 *  
	 * param   role    the role to set   
	 */
	public void setRole(String role) {
		this.role = role;
	}

	/**  
	 * user.  
	 *  
	 * return  the user   
	 */
	public String getUser() {
		return user;
	}

	/**  
	 * user.  
	 *  
	 * param   user    the user to set   
	 */
	public void setUser(String user) {
		this.user = user;
	}

	public String getDrgCode() {
		return drgCode;
	}

	public void setDrgCode(String drgCode) {
		this.drgCode = drgCode;
	}
	public String getMdcCode() {
		return mdcCode;
	}

	public void setMdcCode(String mdcCode) {
		this.mdcCode = mdcCode;
	}

	/**  
	 * depCode.  
	 *  
	 * return  the depCode   
	 */
	public String getDepCode() {
		return depCode;
	}

	/**  
	 * depCode.  
	 *  
	 * param   depCode    the depCode to set   
	 */
	public void setDepCode(String depCode) {
		this.depCode = depCode;
	}

	
	
	/**  
	 * confCode.  
	 *  
	 * return  the confCode   
	 */
	public String getConfCode() {
		return confCode;
	}


	/**  
	 * confCode.  
	 *  
	 * param   confCode    the confCode to set   
	 */
	public void setConfCode(String confCode) {
		this.confCode = confCode;
	}


	/**
	 * @return the years
	 */
	public String[] getYears() {
		return years;
	}

	/**
	 * @param years the years to set
	 */
	public void setYears(String[] years) {
		this.years = years;
	}

	/**
	 * @return the caseCntPer
	 */
	public int getCaseCntPer() {
		return caseCntPer;
	}

	/**
	 * @param caseCntPer the caseCntPer to set
	 */
	public void setCaseCntPer(int caseCntPer) {
		this.caseCntPer = caseCntPer;
	}

	/**
	 * @return the weightPer
	 */
	public int getWeightPer() {
		return weightPer;
	}

	/**
	 * @param weightPer the weightPer to set
	 */
	public void setWeightPer(int weightPer) {
		this.weightPer = weightPer;
	}

	/**
	 * @return the mdcWeightPer
	 */
	public int getMdcWeightPer() {
		return mdcWeightPer;
	}

	/**
	 * @param mdcWeightPer the mdcWeightPer to set
	 */
	public void setMdcWeightPer(int mdcWeightPer) {
		this.mdcWeightPer = mdcWeightPer;
	}
	

	/**
	 * @return the groupType
	 */
	public String getGroupType() {
		return groupType;
	}

	/**
	 * @param groupType the groupType to set
	 */
	public void setGroupType(String groupType) {
		this.groupType = groupType;
	}
	

	public String getHospCode() {
		return hospCode;
	}


	public void setHospCode(String hospCode) {
		this.hospCode = hospCode;
	}
	
	
	@Override
	public Serializable getId() {
		return null;
	}

	@Override
	public String[] businessKeys() {
		return null;
	}

	
}
